package Extends02;

/**
 * 老虎
 */


public class Tigers extends CatsAnimals {
    public Tigers(){}
    public Tigers(String name,String color,int age) {
        super(name, color, age);
    }
    /**
     *游泳
     */

    public void swimming(){
        System.out.println("那只叫"+this.getName()+"的"+this.getColor()+"老虎正在潜水");
    }

}
